package com.yy;

import com.yy.pojo.Teacher;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class testTeacher {
    @Test
    public void t1() {
        ApplicationContext context = new ClassPathXmlApplicationContext("container.xml");
        Teacher teacher = context.getBean("teacher", Teacher.class);
        teacher.show();
    }
}
